package cn.itsource.mapper;

import cn.itsource.domain.Employee;
import cn.itsource.domain.Role;
import cn.itsource.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper {

    void add(Employee employee);

    void update(Employee employee);

    void del(Long id);

    void delList(List ids);

    Employee get(Long id);

    List<Employee> getAll();

    List<Employee> pageQuery(EmployeeQuery query);

    List<Long> findRoleByEmpId(Long id);

    List<String> findRoleNameByEmpId(Long id);

    void deRole(Long id);

    void addEmpRoles(Employee employee);
}
